package com.briup.srms.exam.service;

import java.util.List;

import javax.validation.constraints.NotNull;

import com.briup.srms.exam.bean.Exam;
import com.briup.srms.exam.bean.extend.ExamExtend;
import com.briup.srms.exam.bean.extend.StudentExamExtend;
import com.briup.srms.exam.vm.ExamVM;
import com.briup.srms.sms.bean.Student;
import com.jacky.base.utils.CustomerException;
import com.jacky.base.utils.PageVM;

public interface IExamService {
	
	PageVM<Exam> pageQuery(int page,int pageSize);
	
	void saveOrUpdate(ExamVM examVM,List<Student> students) throws CustomerException;
	
	void deleteById(long id) throws CustomerException;

	ExamExtend queryById(@NotNull Long id);

	List<Exam> queryByStudentId(@NotNull Long studentId);

	StudentExamExtend queryStudentExam(@NotNull Long studentId, Long examId);

}
